package com.jzr.netty.utils;

import com.jzr.netty.base.TDeviceVo;
import com.jzr.netty.db1.service.TDeviceService;
import org.springframework.beans.factory.annotation.Autowired;

import javax.annotation.PostConstruct;

//@Component
public class DeviceUtils {
    @Autowired
    private TDeviceService tDeviceService;

    public static DeviceUtils instance;

    @PostConstruct
    public void init() {
        instance = this;
    }

    public static void saveByRegister(TDeviceVo deviceVo){
        DeviceUtils.instance.tDeviceService.saveByRegister(deviceVo);
    }
}
